import request from '@/utils/http'

const api = {
    /**
   * 获取字典列表
   */
    getDictList(data) {
        return request({
            url: '/dict/list',
            method: 'post',
            data,
        })
    },
    /**
   * 新增字典
   */
    saveDict(data) {
        return request({
            url: '/dict/save',
            method: 'post',
            data,
        })
    },
    /**
   * 更新字典
   */
    updateDict(data) {
        return request({
            url: '/dict/update',
            method: 'post',
            data,
        })
    },
    /**
   * 删除字典
   */
    deleteDict(data) {
        return request({
            url: '/dict/delete',
            method: 'post',
            data,
        })
    },
    /**
   * 获取字典类别
  */
    getDictTypeList() {
        return request({
            url: '/dict/getDictTypeList',
            method: 'post',
        })
    },
}
export default api